UDF to SQL translation through compositional lazy inductive synthesis
نویسندگان
چکیده
Many data processing systems allow SQL queries that call user-defined functions (UDFs) written in conventional programming languages. While such extensions provide convenience and flexibility to users, involving UDFs are not as efficient their pure counterparts invoke SQL’s highly-optimized built-in functions. Motivated by this problem, we propose a new technique for translating with expressions. Unlike prior work space, our method is based on syntactic rewrite rules can handle much more general class of UDFs. At high-level, counterexample-guided inductive synthesis (CEGIS) but employs novel compositional strategy decomposes the task into simpler sub-problems. However, because there no universal decomposition works all UDFs, lazy approach generates sequence decompositions correspond increasingly harder problems. Because most realistic UDF-to-SQL translation tasks amenable fine-grained strategy, scales significantly better than traditional CEGIS. We have implemented proposed tool called CLIS optimizing Spark programs containing Scala To evaluate CLIS, manually study 100 randomly selected find 63 them be expressed SQL. Our evaluation these shows automatically synthesize equivalent expressions 92% cases it solve 2.4× benchmarks compared baseline does use approach. also show yields an average speed-up 3.5× individual 1.3× 3.1× terms end-to-end application performance.
منابع مشابه
Lazy Compositional Veri cation ?
Existing methodologies for the veriication of concurrent systems are eeective for reasoning about global properties of small systems. For large systems, these approaches become expensive both in terms of computational and human eeort. A compositional veriication methodology can reduce the veriication eeort by allowing global system properties to be derived from local component properties. For t...
متن کاملXQuery Translation to Sem-SQL
XML query translation is an inevitable step involved in using non-XML databases storing XML data. In this paper, we address the XQuery to Sem-SQL translation issue, part of the XML storage and retrieval using the Semantic Binary Object-Oriented Database System (Sem-ODB) project, by providing a high-level description of the translation scheme between XQuery and Sem-SQL. Our translation scheme ut...
متن کاملXML - to - SQL Query Translation
Developing techniques for managing and querying the growing body of XML data is becomingly increasingly important. A popular approach to evaluating XML queries is to translate them to relational queries and then to use a relational database system to evaluate the result. The XML and relational data models are significantly different, and as a result, the corresponding query languages (XQuery an...
متن کاملLazy Unification with Inductive Simplification
Unification in the presence of an equational theory is an important problem in theorem-proving and in the integration of functional and logic programming languages. This paper presents an improvement of the proposed lazy unification methods by incorporating simplification with inductive axioms into the unification process. Inductive simplification reduces the search space so that in some case i...
متن کاملSemantics preserving SPARQL-to-SQL translation
Article history: Received 6 July 2008 Received in revised form 2 April 2009 Accepted 3 April 2009 Available online xxxx
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
ژورنال
عنوان ژورنال: Proceedings of the ACM on programming languages
سال: 2021
ISSN: ['2475-1421']
DOI: https://doi.org/10.1145/3485489